package demo1;

//牛客网:乒乓球框
import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s1 = in.next();
        String s2 = in.next();
        int[] hash = new int[26];
        for(int i = 0; i<s2.length(); i++) {
            hash[s2.charAt(i)-'A']++;
        }
        for(char ch : s1.toCharArray()) {
            hash[ch-'A']--;
        }
        for(int i = 0; i<26; i++) {
            if(hash[i] > 0) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
}